package com.lagou.edu.feign;

import org.springframework.stereotype.Component;

/**
 * Created by Heweipo on 2021/2/15.
 */
@Component
public class AuthCodeFallback implements AuthCodeFeignClient{
    @Override
    public Integer validate(String email, String code) {

        // 服务不可用，直接验证码错误
        return 1;
    }
}
